<?php 
if(isset($eventIdForWhosIn) && $eventIdForWhosIn)
{
	$html->css('/events/css/events.css',null,array(),false);
	if(!class_exists("EventAttendee"))
	{
		App::import('Model','Events.EventAttendee');
	}
	if(!class_exists("EventInterest"))
	{
		App::import('Model','Events.EventInterest');
	}
	$attendees = cri("Events.EventAttendee")->getAttendees($eventIdForWhosIn);
	$interested = cri("Events.EventInterest")->getInterestedUsers($eventIdForWhosIn);
	?>
	<div id="event_sideblock" class="whos_in">
		<div class="block">
			<strong><?php echo __("Who is in");?></strong>:  
			<div class='fr'><?php echo sprintf(__n("%s response", "%s responses", count($attendees), true), count($attendees)); ?></div>
			<?php 
			echo $this->element("whosin_users_element",array("plugin"=>"events","whosinUsers"=>$attendees));
			?>
		</div>
		<div class='clear'></div>
		<hr>
		<div class="block">
			<strong><?php echo __("Sounds cool");?></strong>:  
			<div class='fr'><?php echo sprintf(__n("%s response", "%s responses", count($interested), true), count($interested)); ?></div>
			<?php 
			echo $this->element("whosin_users_element",array("plugin"=>"events","whosinUsers"=>$interested));
			?>
		</div>
	</div>
	<div class='clear'></div>
<?php 
}
?>